package com.knight.study.patterns.tujie.bridge;

/**
 * @Author knight
 * @Date 2024/9/11 11:21
 */

public class Display {
    private DisplayImpl iml;

    public Display(DisplayImpl iml) {
        this.iml = iml;
    }
    public void open() {
        iml.rawOpen();
    }
    public void print() {
        iml.rawPrint();
    }
    public void close() {
        iml.rawClose();
    }
    public final void display() {
        open();
        print();
        close();
    }
}
